package com.indexingsystem.boss.aspect;

import java.sql.Connection;
import java.util.HashMap;
import java.util.Map;
import com.alibaba.druid.pool.DruidDataSource;
import com.mysql.jdbc.PreparedStatement;

import org.aspectj.lang.ProceedingJoinPoint;
import org.springframework.core.annotation.Order;
import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

@SuppressWarnings("unused")
public class DynamicDataSource extends AbstractRoutingDataSource {  
	@Override
    protected Object determineCurrentLookupKey() {
		 return DynamicDataSourceHolder.getDataSourceType();
    }
	
}